package com.example.demo.controller;

import com.example.demo.IConnect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private IConnect iConnect;

    @GetMapping("/name/{name}")
    public String test() {
        iConnect.connect();
        return "test";
    }
}
